<%@page import="ufc.quixada.petti.model.Evento"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Home</title>
</head>
<body>
    
    
    <table border="1">
    
        <%
        List<Evento> eventos= (List<Evento>) request.getAttribute("eventos");
        
        for(Evento evento: eventos){
           
        %>  
        
        <tr>
            <td>
                <a href=<%="listaParticipantes?id=" + evento.getId()%> > <%= evento.getNome()%></td>
        </tr>
        
        <%
        }%>
    </table>
</body>
</html>